from SeerGlobal import *
from SeerFight import *
task = get_value('Task')
zhan = get_value('Zhan')
seerDm = get_value('SeerDm')

def 点击验证(data):
    """0123左右正后"""
    if data == 0:
        dm_ret = seerDm.dm.FindMultiColor(127,304,825,388,"01FF01","4|0|01FF01,0|4|01FF01",1,0)#左
    if data == 1:
        dm_ret = seerDm.dm.FindMultiColor(127,304,825,388,"FFFF01","7|2|FFFF01,5|12|FFFF01",1,0)#右
    if data == 2:
        dm_ret = seerDm.dm.FindMultiColor(127,304,825,388,"FF0101","6|0|FF0101,2|15|FF0101",1,0)#正
    if data == 3:
        dm_ret = seerDm.dm.FindMultiColor(127,304,825,388,"0101FF","5|1|0101FF,3|12|0101FF",1,0)#后
    if(int(dm_ret[0]) != 0):
        seerDm.moveTo(int(dm_ret[1]),int(dm_ret[2]))
        seerDm.leftClick()

def job():
    """巅峰跳过验证"""
    #验证
    if(Fun("ednUW","ednUW_1") == 1):#背面
        点击验证(3)
    if(Fun("ednUW","ednUW_2") == 1):#右
        点击验证(1)
    if(Fun("ednUW","ednUW_3") == 1):#左
        点击验证(0)
    if(Fun("ednUW","ednUW_4") == 1):#正
        点击验证(2)